<template>
    <div>
        <!-- {{getlist}} -->
        <!-- <table align='center'>
            <tr>
                <td>玩具</td>
                <td>阿松</td>
            </tr>
            <tr v-for=" i in list" :key="i">
                <td>{{i.name}}</td>
                <td> <button>兑换</button></td>
            </tr>
        </table> -->
        <ul>
            <li v-for="i in list" :key="i.name">
                <router-link :to="{'path':i.url}">{{i.name}}</router-link>
            </li>
        </ul>
    </div>
</template>

<script>
// import user from '../zxc/user.vue'
// import myaxios from 'axios'
export default {
    data(){
        return{
            list:JSON.parse(localStorage.getItem('list'))
        }
    },
    methods:{
    //  getlist(){
    //   myaxios({url:'http://127.0.0.1:5000/getlist',method:'get'})
    //   .then(res=>{
    //     console.log(res)
    //     this.list = res.data.list
    //     // this.$toast.fail("添加成功");
    //   })
    // }
  },
  mounted() {
    // this.getlist()

  },

}
</script>

<style>

</style>